package cn.edu.fzu.homemaking.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.fzu.homemaking.domain.entity.SysLabel;
import cn.edu.fzu.homemaking.domain.enums.LabelStatusEnum;

/**
 * @author yifan
 * @date 2023/4/4
 */
public interface SysLabelMapper {

    /**
     * 批量查询标签
     * @param labelIds
     * @return
     */
    List<SysLabel> getByIds(@Param("labelIds") List<Long> labelIds);

    List<SysLabel> getByCompanyId(@Param("companyId") Long companyId);

    Integer insert(@Param("name") String name, @Param("status")LabelStatusEnum status);

    List<SysLabel> list(@Param("name") String name, @Param("status")LabelStatusEnum status);

    Integer add(@Param("labelNames") List<String> labelNames, @Param("status") LabelStatusEnum status);

    Integer update(@Param("id") Long id, @Param("name") String name, @Param("status") LabelStatusEnum status);
}
